import React from "react";
import { ComponentStory, ComponentMeta } from "@storybook/react";

import { Button, ButtonProps } from "./Taro";

// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
export default {
  title: "Taro/Taro",
  component: Button,
} as ComponentMeta<typeof Button>;

// 一、纯函数story
// 只控制peview渲染，必须是函数组件
// 对于无法提供完整依赖预览的组件可使用其他标签替代export const Default = () => <label/>;
export const Default = (args: ButtonProps) => {
  return <Button {...args} text="Default"></Button>;
};

